package com.woniu.zsd.recycle.xxl;

import com.woniu.zsd.recycle.service.EvaluateService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class RecycleScore {
    @Resource
    private EvaluateService evaluateService;

    //每天统计商品的销售数据
    @XxlJob("RecycleScoreDay")
    public void sale() throws Exception {

        //更新全部站点评分
        evaluateService.selectStationScore();
    }
}
